import instance from "./request";
// 根据id查看退货申请详情
export const selectDetailById = (id: string): RES<IReturnApplyDetailResultModel> => {
  return instance({
    url: `returnApply/${id}`
  })
}

// 根据id修改退货申请状态
export const updateReturnApplyById = (data: { id: number, statusParam: IReturnApplyStatusParamsModel }): RES<number> => {
  return instance({
    url: `returnApply/update/status/${data.id}`,
    method: "POST",
    data: data.statusParam
  })
}